//采购订单
// 打开新增采购订单小窗口
function showNewStockOrder() {
	window.open("stockOrder!addInput.action", "", "");
} 

//显示详情
function showStockOrderDetail() {
	var checkboxNo = document.getElementsByName("rowlist");
	//得到要提交的表单
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked) {
			delrow.action = "stockOrder!searchDetail.action";
			//提交表单到action	
			delrow.submit();
		}
	}
}
function auditingStockOrder() {
	var checkboxNo = document.getElementsByName("rowlist");
	//得到要提交的表单
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		var t = document.getElementById("mbody");
		if (checkboxNo[i].checked && confirm("\u786e\u5b9a\u8981\u5ba1\u6838\u5417\uff1f")) {
		//alert("确定要审核吗？");
			delrow.action = "stockOrder!auditing.action";
			//提交表单到action	
			delrow.submit();
		}
	}
}
function antiAuditingStockOrder() {
	var checkboxNo = document.getElementsByName("rowlist");
	//得到要提交的表单
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		var t = document.getElementById("mbody");
		if (checkboxNo[i].checked && confirm("\u786e\u5b9a\u8981\u53cd\u5ba1\u6838\u5417\uff1f")) {
		//alert("确定要反审核吗？");
			delrow.action = "stockOrder!antiAuditing.action";
			//提交表单到action	
			delrow.submit();
		}
	}
}
function openWind(link, name, width, height, scroll) {
	scroll = 0;
	var sb = scroll;
	width = 800;
	height = 500;
	var l = (screen.width - width) / 2;
	var t = (screen.height - height) / 2;
	var sFeatures = "left=" + l + ",top=" + t + ",height=" + height + ",width=" + width + ",center=1,scrollbars=" + sb + ",status=0,directories=0,channelmode=0";
	var openwin = window.open("supplier!select.action ", "selectSupplier", sFeatures);
	if (!openwin.opener) {
		openwin.opener = self;
	}
	openwin.focus();
}
var indexO = 0;
//动态添加采购订单详单
function addStockOrder() {
	indexO++;
	var t = document.getElementById("mbody");
	var row = t.insertRow(t.rows.length);
	var i = t.rows.length - 2;
	var id = "textSuggest" + i;
	var col = row.insertCell(0);
	col.innerHTML = "<td><input type='checkbox' name='checkbox'/></td>";
	col = row.insertCell(1);
	col.innerHTML = "<td><input  name='materialId' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/><a href='#' onclick='openWind();return false;' onfocus='this.blur()'><img src='images/lookup.gif' /> </a></td>";
	col = row.insertCell(2);
	col.innerHTML = "<td><input name='measureUnitId' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(3);
	col.innerHTML = "<td><input name='inStorageAmount' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(4);
	col.innerHTML = "<td><input name='stockAmount' id='stockAmount" + indexO + "' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(5);
	col.innerHTML = "<td><input name='unitPrice' id='unitPrice" + indexO + "'  type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(6);
	col.innerHTML = "<td><input name='money' id='money" + indexO + "' onclick='countOrder(" + indexO + ");'  type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(7);
	col.innerHTML = "<td><input name='dutyFrank' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(8);
	col.innerHTML = "<td><input name='totalUnitPrice' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(9);
	col.innerHTML = "<td><input name='discount' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/><t/td>";
	col = row.insertCell(10);
	col.innerHTML = "<td><input name='realTotalUnitPrice' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(11);
	col.innerHTML = "<td><input name='discountPrice' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(12);
	col.innerHTML = "<td><input name='dutyPrice' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(13);
	col.innerHTML = "<td><input name='totalMoney' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(14);
	col.innerHTML = "<td><input name='deliveryDate' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(15);
	col.innerHTML = "<td><input name='remark' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	
	
}













//采购发票
// 打开新增采购发票小窗口
function showStockInvoice() {
	window.location.href("stockInvoice!addInput.action");
} 
		//StockInvoice
function updateStockInvoiceList() {

	//namecheckbox
	//var table=document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("rowlist");
	//
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked) {
			alert("\u786e\u5b9a\u8981\u4fee\u6539\u4f60\u9009\u4e2d\u7684\u8bb0\u5f55\u5417\uff1f");
			delrow.action = "stockInvoiceList!updateInput.action";
			//action	
			delrow.submit();
		    //j=checkboxNo[m].parentElement.parentElement.rowIndex ;
			//table.deleteRow(j);		
		}
	}
}

//
function deleteStockInvoiceList() {

	//namecheckbox
	var table = document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("rowlist");
	var delrow = document.getElementById("delrow");
	var list = new Array();
	var j = 0;
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked) {
			list[j] = checkboxNo[i].parentElement.parentElement.rowIndex;
		}
	}
	if (list.length < 1) {
		//
		alert("\u8bf7\u9009\u62e9\u4f60\u60f3\u8981\u5220\u9664\u7684\u8bb0\u5f55");
	} else {
		if (list.length > 0) {
			if (confirm("\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f")) {
				delrow.action = "stockInvoiceList!del.action";
				delrow.submit();
		    //j=checkboxNo[m].parentElement.parentElement.rowIndex ;
			//table.deleteRow(j);					
			}//endif
		}
	}//end else
}//end delrow


//StockInvoice
function auditingStockInvoiceList() {

	//namecheckbox
	var table = document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("rowlist");
	//
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked && confirm("\u786e\u5b9a\u8981\u5ba1\u6838\u5417\uff1f")) {
			//alert("u786eu5b9au8981u4feeu6539u4f60u9009u4e2du7684u8bb0u5f55u5417uff1f");
			delrow.action = "stockInvoiceList!auditing.action";
			//action	
			delrow.submit();
		    //j=checkboxNo[m].parentElement.parentElement.rowIndex ;
			//table.deleteRow(j);		
		}
	}
}

function reAuditing(){

	//namecheckbox
	var table = document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("rowlist");
	//
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked && confirm("\u786e\u5b9a\u8981\u5ba1\u6838\u5417\uff1f")) {
			//alert("u786eu5b9au8981u4feeu6539u4f60u9009u4e2du7684u8bb0u5f55u5417uff1f");
			delrow.action = "stockInvoiceList!reAuditing.action";
			//action	
			delrow.submit();
		    //j=checkboxNo[m].parentElement.parentElement.rowIndex ;
			//table.deleteRow(j);		
		}
	}
}

function searchStockInvoiceList() {

	//namecheckbox
	var table = document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("rowlist");
	var delrow = document.getElementById("delrow");
	var list = new Array();
	var j = 0;
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked) {
			list[j] = checkboxNo[i].parentElement.parentElement.rowIndex;
		}
	}
	if (list.length < 1) {
		//
		alert("");
	} else {
		if (list.length > 0) {
			delrow.action = "stockInvoice!searchList.action";
			delrow.submit();
		    //j=checkboxNo[m].parentElement.parentElement.rowIndex ;
			//table.deleteRow(j);					
		}//endif
	}
}//end delrow
function lookStockInvoiceList() {

	//namecheckbox
	var table = document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("rowlist");
	var delrow = document.getElementById("delrow");
	var list = new Array();
	var j = 0;
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked) {
			list[j] = checkboxNo[i].parentElement.parentElement.rowIndex;
		}
	}
	if (list.length < 1) {
		//
		alert("");
	} else {
		if (list.length > 0) {
			delrow.action = "stockInvoice!lookList.action";
			delrow.submit();
		    //j=checkboxNo[m].parentElement.parentElement.rowIndex ;
			//table.deleteRow(j);					
		}//endif
	}
}//end delrow
function delrowInvoice() {
	//namecheckbox
	var table = document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("rowlist");
	var j = 0;
	var k = 0;
	for (var i = checkboxNo.length - 1; i >= 0; i--) {
		if (checkboxNo[i].checked) {
			k++;
			j = checkboxNo[i].parentElement.parentElement.rowIndex;
			//yesno
			//if(confirm(""))
			table.deleteRow(j);
		}
	}
	if (k < 1) {
		//
		alert("");
	}
}
function returnList() {
	var delrow = document.getElementById("delrow");
	delrow.action = "stockInvoiceList!search.action";
	delrow.submit();
}
function addStockInvoiceRow() {
	var t = document.getElementById("mbody");
	var row = t.insertRow(t.rows.length);
	var i = t.rows.length - 1;
	var col = row.insertCell(0);
	
	
	col.innerHTML = "<td><input type='checkbox' name='rowlist'>";
	col = row.insertCell(1);
	col.innerHTML = "<td><input type='hidden'  id='materialId" + i + "' /><input name='materialCode' id='materialCode" + i + "' size='8' ondblclick='openWinMaterial("+i+",800,600,1)'/></td>";
	col = row.insertCell(2);
	col.innerHTML = "<td><input type='text' name='materialName' id='materialName"+i+"' readonly='true' size='8'/></td>";
	col = row.insertCell(3);
	col.innerHTML = "<td><input type='text' name='spec' id='spec"+i+"' readonly='true' size='8'/></td>";
	col = row.insertCell(4);
	col.innerHTML = "<td><input type='text' name='materialAttribute' id='materialAttribute"+i+"' readonly='true' size='8'/></td>";
	col = row.insertCell(5);
	col.innerHTML = "<td><input type='hidden' id='measureUnitId" + i + "'/><input name='measureUnitName' id='measureUnitName"+i+"' ondblclick='openWinMeasureUnit(" + i + ",750,700,0)'  onpropertychange='getCostInfo("+i+")' type='text' size='8'/></td>";
	col = row.insertCell(6);
	col.innerHTML = "<td><input type='text' name='account' id='account"+i+"' size='8'/></td>";
	col = row.insertCell(7);
	col.innerHTML = "<td><input type='text' name='unitPrice' id='unitPrice"+i+"' size='8'/></td>";
	col = row.insertCell(8);
	col.innerHTML = "<td><input type='text' name='totalUnitPrice' id='totalUnitPrice"+i+"' size='8'/></td>";
	col = row.insertCell(9);
	col.innerHTML = "<td><input type='text' name='dutyFrank' id='dutyFrank"+i+"' size='8'/></td>";
	col = row.insertCell(10);
	col.innerHTML = "<td><input type='text' name='realTotalUnitPrice' id='realTotalUnitPrice"+i+"' readonly='true' size='8'/></td>";
	col = row.insertCell(11);
	col.innerHTML = "<td><input type='text' name='money' id='money"+i+"' readonly='true' size='8'/></td>";
	col = row.insertCell(12);
	col.innerHTML = "<td><input type='text' name='dutyPrice' id='dutyPrice"+i+"' readonly='true' size='8'/></td>";
	col = row.insertCell(13);
	col.innerHTML = "<td><input type='text' name='discount' id='discount"+i+"' size='8'/></td>";
	col = row.insertCell(14);
	col.innerHTML = "<td><input type='text' name='totalMoney' id='totalMoney"+i+"' size='8'/></td>";
	col = row.insertCell(15);
	col.innerHTML = "<td><input type='text' name='orderTotalUnitPrice' id='orderTotalUnitPrice"+i+"' size='8'/></td>";
	col = row.insertCell(16);
	col.innerHTML = "<td><input type='text' name='remark' id='remark"+i+"' size='8'/></td>";
	col = row.insertCell(17);
	col.innerHTML = "<td><input type='text' name='sourceBillCode' id='sourceBillCode"+i+"' size='8'/></td>";
	col = row.insertCell(18);
	col.innerHTML = "<td><input type='text' name='sourceOrderCode' id='sourceOrderCode"+i+"' size='8'/></td>";
	col = row.insertCell(16);
	col.innerHTML = "<td><input type='text' name='remark' id='remark"+i+"' size='8'/></td>";
	
}

function openWinMaterial(index, width, height, scroll) {
	//alert(this.parentElement.parentElement.rowIndex);
	var truelink = "selectMaterial.action?rowIndex="+index;
	openWin(truelink, null, width, height, scroll);
}
		
		
		
//采购入库
// 打开新增采购入库小窗口
function showNewStockInstore() {
	window.open("stockInstore!addInput.action", "newwindow", "");
}
function showStockInstoreDetail() {
	var checkboxNo = document.getElementsByName("rowlist");
	//得到要提交的表单
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked) {
			alert("\u786e\u8ba4\u67e5\u770b\u8be6\u60c5\u5417\uff1f");
			delrow.action = "stockInstore!searchDetail.action";
			//提交表单到action	
			delrow.submit();
		    //j=checkboxNo[m].parentElement.parentElement.rowIndex ;
			//table.deleteRow(j);		
		}
	}
}
				//修改list中的某一条记录
function updateStockInstore() {

	//得到表格对象和name为checkbox的复选框
	var table = document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("rowlist");
	//得到要提交的表单
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked) {
			alert("\u786e\u5b9a\u8981\u4fee\u6539\u4f60\u9009\u4e2d\u7684\u8bb0\u5f55\u5417\uff1f");
			delrow.action = "stockInstore!updateInput.action";
			//提交表单到action	
			delrow.submit();
		    //j=checkboxNo[m].parentElement.parentElement.rowIndex ;
			//table.deleteRow(j);		
		}
	}
}
function delrowStockInstore() {

	//得到表格对象和name为checkbox的复选框
	var table = document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("rowlist");
	//得到要提交的表单
	var delrow = document.getElementById("delrow");
	var list = new Array();
	var j = 0;
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked) {
			list[j] = checkboxNo[i].parentElement.parentElement.rowIndex;
		}
	}
	if (list.length < 1) {
		//用户没有选择任何记录就点击删除按钮，给出提示信息
		alert("\u8bf7\u9009\u62e9\u4f60\u60f3\u8981\u5220\u9664\u7684\u8bb0\u5f55");
	} else {
		if (list.length > 0) {
			if (confirm("\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f")) {
				delrow.action = "stockInstore!del.action";
				delrow.submit();
		    //j=checkboxNo[m].parentElement.parentElement.rowIndex ;
			//table.deleteRow(j);					
			}//endif
		}
	}//end else
}//end delrow

//显示详情
function showStockInstoreDetail() {
	var checkboxNo = document.getElementsByName("rowlist");
	//得到要提交的表单
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		if (checkboxNo[i].checked) {
			delrow.action = "stockInstore!searchDetail.action";
			//提交表单到action	
			delrow.submit();
		}
	}
}
function auditingStockInstore() {
	var checkboxNo = document.getElementsByName("rowlist");
	//得到要提交的表单
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		var t = document.getElementById("mbody");
		if (checkboxNo[i].checked && confirm("\u786e\u5b9a\u8981\u5ba1\u6838\u5417\uff1f")) {
			delrow.action = "stockInstore!auditing.action";
			//提交表单到action	
			delrow.submit();
		}
	}
}
function antiAuditingStockInstore() {
	var checkboxNo = document.getElementsByName("rowlist");
	//得到要提交的表单
	var delrow = document.getElementById("delrow");
	for (var i = checkboxNo.length - 1; i >= 0; i = i - 1) {
		var t = document.getElementById("mbody");
		if (checkboxNo[i].checked && confirm("\u786e\u5b9a\u8981\u53cd\u5ba1\u6838\u5417\uff1f")) {
			delrow.action = "stockInstore!antiAuditing.action";
			//提交表单到action	
			delrow.submit();
		}
	}
}

//采购入库订单生成
function trans() {
	var type = document.getElementById("type").value;
	if (type == "") {
		alert("\u8bf7\u8f93\u5165\u539f\u5355\u7c7b\u578b");
	} else {
		if (type == "\u91c7\u8d2d\u8ba2\u5355") {
			window.open("stockOrder!select.action", "", 800, 600, 1);
		} else {
			window.open("stockInvoice!select2.action", "", 900, 700, 1);
		}
	}
}		
        
//
function sel() {
	window.opener.close();
	var subform = document.getElementById("delrow");
	subform.action = "stockOrder!createStockInStorage.action";
	subform.submit();
}
function price(remou, value) {
	var t = document.getElementById("mbody");
	var a = document.getElementById("inStrReAmou").value;
	var b = document.getElementById("inStrMaterialPrice").value;
	var num1 = parseInt(a);
	var num2 = parseInt(b);
	a = remou;
	b = value;
	var r = num1 * num2;
	document.getElementById("inStrValue").value = r;
	return r;
}

//自动计算金额
function countOrder(indexO) {

			//采购订单金额计算
	var amount = parseInt(document.getElementById("stockAmount" + indexO).value);
	var uprice = parseFloat(document.getElementById("unitPrice" + indexO).value);
	var money = document.getElementById("money" + indexO);
	if (!amount || amount == 0 || !uprice || uprice == 0) {
		money.value = 0;
	} else {
		money.value = amount * uprice;
	}
}

var indexI = 0;
function countInstore(indexI) {
			//采购入库金额计算
			
	var reamou = parseInt(document.getElementById("inStrReAmou" + indexI).value);
	var price = parseFloat(document.getElementById("inStrMaterialPrice" + indexI).value);
	var svalue = document.getElementById("inStrValue" + indexI);
	if (!reamou || reamou == 0 || !price || price == 0 ) {
		svalue.value = 0;
	} else {
		svalue.value = reamou * price;
	}
}	


//动态添加采购入库详单

function addStockInstore() {
	indexI++;
	var t = document.getElementById("mbody");
	var row = t.insertRow(t.rows.length);
	var i = t.rows.length - 2;
	var id = "textSuggest" + i;
	var col = row.insertCell(0);
	col.innerHTML = "<td><input  type='checkbox' name='checkbox'/></td>";
	col = row.insertCell(1);
	col.innerHTML = "<td><input name='materialId' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(2);
	col.innerHTML = "<td><input name='wareHouseId' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/><t/td>";
	col = row.insertCell(3);
	col.innerHTML = "<td><input name='measureUnitId' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(4);
	col.innerHTML = "<td><input name='inStrRAmou' type='text' size='11'   style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(5);
	col.innerHTML = "<td><input name='inStrReAmou' id='inStrReAmou" + indexI + "' ' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;' /></td>";
	col = row.insertCell(6);
	col.innerHTML = "<td><input name='inStrMaterialPrice' id='inStrMaterialPrice" + indexI + "'  type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(7);
	col.innerHTML = "<td><input name='inStrValue' id='inStrValue" + indexI + "' value='0'  type='text' size='11' style='border:1px solid #BCD2F3;height:22px;' onclick='countInstore(" + indexI + ");'/></td>";
	col = row.insertCell(8);
	col.innerHTML = "<td><input name='inStrRemarks' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/><t/td>";
	col = row.insertCell(9);
	col.innerHTML = "<td><input name='inStrDate' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;' readonly='readonly'></td>";
	col = row.insertCell(10);
	col.innerHTML = "<td><input name='inStrLife' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(11);
	col.innerHTML = "<td><input name='inStrValidity' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(12);
	col.innerHTML = "<td><input name='inStrROrderNo' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(13);
	col.innerHTML = "<td><input name='inStrOrderNo' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(14);
	col.innerHTML = "<td><input name='inStrAmoun' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
	col = row.insertCell(15);
	col.innerHTML = "<td><input name='materialNO' type='text' size='11' style='border:1px solid #BCD2F3;height:22px;'/></td>";
}
function delrowStock() {
	//得到表格对象和name为checkbox的复选框
	var table = document.getElementById("info_table");
	var checkboxNo = document.getElementsByName("checkbox");
	var j = 0;
	var k = 0;
	for (var i = checkboxNo.length - 1; i >= 0; i--) {
		if (checkboxNo[i].checked && confirm("\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f")) {
			k++;
			j = checkboxNo[i].parentElement.parentElement.rowIndex;
			//提示用户对要删除的记录进行确认，yes删除所选记录，no不进行任何操作
			//if(confirm("确定要删除吗"))
			table.deleteRow(j);
		}
	}
	if (k < 1) {
		//用户没有选择任何记录就点击删除按钮，给出提示信息
		alert("\u8bf7\u9009\u62e9\u4f60\u60f3\u8981\u5220\u9664\u7684\u8bb0\u5f55");
	}
}

